package com.kgc.cgapi.pojo;

import java.io.Serializable;
import java.util.List;

public class PageInfo<T> implements Serializable {
    private int pageNow;
    private int pageSize;
    private int pages;
    private int total;
    private List<T> data;

    @Override
    public String toString() {
        return "PageInfo{" +
                "pageNow=" + pageNow +
                ", pageSize=" + pageSize +
                ", pages=" + pages +
                ", total=" + total +
                ", data=" + data +
                '}';
    }

    public int getPageNow() {
        return pageNow;
    }

    public void setPageNow(int pageNow) {
        this.pageNow = pageNow;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
